package com.leha.core.dao;

import com.leha.core.entity.mybatis.LhGameLog;
import com.leha.core.entity.mybatis.LhRank;
import com.leha.core.entity.vo.ImgAndQuestions_;
import com.leha.core.entity.vo.ImgsAndQuestionsVO;
import com.leha.core.entity.vo.UserInfoAndRank;
import com.leha.core.entity.vo.UserRewardsVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LhGameJYLCustomMapper {
    List<ImgAndQuestions_> randImgsForUser(@Param("gameId") Integer gameId, @Param("limit") Integer limit);
    List<UserRewardsVO> getGameRewards(@Param("gameId") Integer gameId, @Param("limit") Integer limit);
    List<UserRewardsVO> getGameUserRewards(@Param("uid") Integer uid);
    void updateQuestionCnt(@Param("qid") Integer questionId);
    List<LhGameLog> getActiveGameRec(@Param("uid") Integer uid);

    Double getRankRate(@Param("gameId") Integer gameId, @Param("score") Integer score);
}
